package com.scedu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    @RequestMapping({"/","index"})
    public String index() {
        //首页
        return "/pages/main.html";
    }

    @GetMapping("/loginPage")
    public String login() {
        //登录页面
        return "/login";
    }

    @GetMapping("/failer")
    public String failer() {
        //失败页面
        return "/failer";
    }
    @GetMapping("/403")
    public String p403()
    {
        return "/403";
    }
    @GetMapping("/404")
    public String p404()
    {
        return "/404";
    }
    @GetMapping("/500")
    public String p500()
    {
        return "/500";
    }


}

